<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="周期性执行备份">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="zh-cn_topic_0000001839268309.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="ZH-CN_TOPIC_0000001792389308">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>周期性执行备份</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="ZH-CN_TOPIC_0000001792389308"></a><a name="ZH-CN_TOPIC_0000001792389308"></a>
  <h1 class="topictitle1">周期性执行备份</h1>
  <div>
   <p>将需要保护的资源关联到指定SLA策略，系统将对这些资源按照SLA策略进行保护。</p>
   <div class="section">
    <h4 class="sectiontitle">注意事项</h4>
    <p id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_p5298101017162"><span id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_ph259092114816">全量备份失败后，如果下一次备份是日志备份，由于日志备份依赖上一次成功的全量备份副本，该日志备份任务将失败。此时，请手动执行一次全量备份。</span></p>
   </div>
   <div class="section" id="ZH-CN_TOPIC_0000001792389308__section68231216228">
    <h4 class="sectiontitle">前提条件</h4>
    <ul id="ZH-CN_TOPIC_0000001792389308__ul512180103212">
     <li id="ZH-CN_TOPIC_0000001792389308__li712119013220">建议禁用数据库的KRB trace，否则备份过程中会产生大量KRB trace文件，而占用主机存储空间。禁用KRB trace的具体操作可参考<a href="zh-cn_topic_0000001839268305.html">如何禁用Oracle数据库的krb trace</a>。</li>
     <li id="ZH-CN_TOPIC_0000001792389308__li168585418321">对于1.6.0及后续版本，ASM场景下如需执行存储层快照备份，请联系技术支持工程师在生产环境完成Udev配置，具体操作请参考<a href="zh-cn_topic_0000001864661961.html">配置Udev（适用于存储层快照备份）</a>章节。</li>
     <li id="ZH-CN_TOPIC_0000001792389308__li584882135013">对于1.6.0及后续版本，非ASM场景下如需执行存储层快照备份，请确保Oracle数据库的数据文件、控制文件、日志文件、pfile和spfile参数文件所在目录已挂载至OceanStor Dorado。</li>
    </ul>
   </div>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>选择<span class="uicontrol" id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001839142377_uicontrol49641842919">“<span id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001839142377_text63901566195">保护</span> &gt; 数据库 &gt; Oracle”</span>。</span></li>
    </ol>
    <ol start="2">
     <li><span>在<span class="uicontrol" id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_uicontrol34952023165718">“<span id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_text7900152503211">数据库</span>”</span>页签，选择需要保护的数据库，单击<span class="uicontrol" id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_uicontrol851716476568">“<span id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_text5546154284118">保护</span>”</span>。</span><p></p><p id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_p1478765116562">您也可以勾选多个数据库进行批量保护。</p> <p></p></li>
     <li><span>选择SLA。</span><p></p><p id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_p33248794210">您也可以单击<span class="uicontrol" id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_uicontrol744210206420">“<span id="ZH-CN_TOPIC_0000001792389308__zh-cn_topic_0000001792503842_text1460532344618">创建</span>”</span>，创建新的SLA。</p> <p></p></li>
     <li id="ZH-CN_TOPIC_0000001792389308__li164660725814"><a name="ZH-CN_TOPIC_0000001792389308__li164660725814"></a><a name="li164660725814"></a><span>配置Oracle数据库备份高级参数。</span><p></p>
      <div class="p">
       相关参数说明如<a href="#ZH-CN_TOPIC_0000001792389308__table354613271506">表1</a>所示。 
       <div class="tablenoborder">
        <a name="ZH-CN_TOPIC_0000001792389308__table354613271506"></a><a name="table354613271506"></a>
        <table cellpadding="4" cellspacing="0" summary="" id="ZH-CN_TOPIC_0000001792389308__table354613271506" frame="border" border="1" rules="all">
         <caption>
          <b>表1 </b>Oracle数据库备份高级参数说明
         </caption>
         <colgroup>
          <col style="width:22.11%">
          <col style="width:77.89%">
         </colgroup>
         <thead align="left">
          <tr>
           <th align="left" class="cellrowborder" valign="top" width="22.11%" id="mcps1.3.4.3.3.2.1.2.2.3.1.1"><p>参数</p></th>
           <th align="left" class="cellrowborder" valign="top" width="77.89%" id="mcps1.3.4.3.3.2.1.2.2.3.1.2"><p>说明</p></th>
          </tr>
         </thead>
         <tbody>
          <tr>
           <td class="cellrowborder" valign="top" width="22.11%" headers="mcps1.3.4.3.3.2.1.2.2.3.1.1 "><p><span>备份完成后删除归档日志</span></p></td>
           <td class="cellrowborder" valign="top" width="77.89%" headers="mcps1.3.4.3.3.2.1.2.2.3.1.2 "><p>日志备份完成后是否删除生产环境的归档日志。</p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="22.11%" headers="mcps1.3.4.3.3.2.1.2.2.3.1.1 "><p>存储层快照备份</p></td>
           <td class="cellrowborder" valign="top" width="77.89%" headers="mcps1.3.4.3.3.2.1.2.2.3.1.2 "><p><span style="color:#282B33;">开启后，通过存储层备份模式备份。</span>开启存储层快照备份后，支持选择内置或外置代理主机对数据库进行存储层快照备份。</p>
            <div class="note">
             <span class="notetitle"> 说明： </span>
             <div class="notebody">
              <ul>
               <li>仅1.6.0及后续版本支持该功能。</li>
               <li>对于Oracle单机场景，如果选择的SLA中包含差异备份策略，则不支持开启存储层快照备份。</li>
               <li>对于Oracle集群场景，如果选择的SLA中包含差异备份策略或复制策略，则不支持开启存储层快照备份。</li>
               <li>请确保所保护的数据库资源所在的ASM磁盘组无其他数据库实例，否则不支持存储层快照备份。</li>
               <li><span>如果是Windows操作系统，</span>开启存储层快照备份后请选择内置代理主机或者安装了Oracle插件的Linux外置代理主机。</li>
               <li>如果Oracle版本为11版本，在创建快照期间，系统会自动开启Oracle数据库的存储层<span style="color:#282B33;">备份</span>模式。</li>
              </ul>
             </div>
            </div></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="22.11%" headers="mcps1.3.4.3.3.2.1.2.2.3.1.1 "><p><span>代理主机</span></p></td>
           <td class="cellrowborder" valign="top" width="77.89%" headers="mcps1.3.4.3.3.2.1.2.2.3.1.2 "><p>选择用于执行备份的代理主机，支持选择多个。未配置时系统将默认选择其中一个代理主机。</p>
            <div class="note">
             <span class="notetitle"> 说明： </span>
             <div class="notebody">
              <ul>
               <li>用户在此处手动选择代理主机时，要求数据库认证方式必须为“数据库认证”，否则备份恢复任务会失败。</li>
               <li>由系统默认选择时，数据库认证方式为“数据库认证”或“OS认证”，备份恢复任务不受影响。</li>
              </ul>
             </div>
            </div></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" width="22.11%" headers="mcps1.3.4.3.3.2.1.2.2.3.1.1 "><p><span>备份前执行脚本</span></p></td>
           <td class="cellrowborder" rowspan="3" valign="top" width="77.89%" headers="mcps1.3.4.3.3.2.1.2.2.3.1.2 "><p>您可以根据实际需求，配置“<span>备份前执行脚本</span>”、“<span>备份成功执行脚本</span>”和“<span>备份失败执行脚本</span>”，当备份任务事件中出现“开始执行前置任务”提示后，配置的脚本会在对应场景下执行。</p>
            <ul id="ZH-CN_TOPIC_0000001792389308__ul15603161520372">
             <li id="ZH-CN_TOPIC_0000001792389308__li1460341514374"><span>如果是Linux操作系统，请输入脚本名称，脚本名称以</span><strong id="ZH-CN_TOPIC_0000001792389308__b1732018117386">.sh</strong><span>结尾。确保脚本已存放在数据库主机安装目录下的</span><span class="filepath" id="ZH-CN_TOPIC_0000001792389308__filepath560914216351">“DataBackup/ProtectClient/ProtectClient-E/sbin/thirdparty”</span><span>目录中，且登录数据库主机的用户（默认为</span><strong id="ZH-CN_TOPIC_0000001792389308__b95043281423">root</strong><span>）对该脚本有可执行权限。如果无执行权限请依次执行以下命令授权：</span><p id="ZH-CN_TOPIC_0000001792389308__p16108247123612"><strong id="ZH-CN_TOPIC_0000001792389308__b81136193713">chown root:root</strong> <em id="ZH-CN_TOPIC_0000001792389308__i16108134713615">脚本名称</em></p> <p id="ZH-CN_TOPIC_0000001792389308__p161081847163612"><strong id="ZH-CN_TOPIC_0000001792389308__b911119173711">chmod 500</strong><strong id="ZH-CN_TOPIC_0000001792389308__b87241853163611"> </strong><em id="ZH-CN_TOPIC_0000001792389308__i107241353203616">脚本名称</em></p></li>
             <li id="ZH-CN_TOPIC_0000001792389308__li9864508377"><span>如果是Windows操作系统，请输入脚本名称，脚本名称以</span><strong id="ZH-CN_TOPIC_0000001792389308__b6561111433814">.bat</strong><span>结尾。确保脚本已存放在数据库主机安装目录下的</span><span class="filepath" id="ZH-CN_TOPIC_0000001792389308__filepath178625093713">“DataBackup\ProtectClient\ProtectClient-E\bin\thirdparty”</span><span>目录中，且登录数据库主机的用户（默认为</span><strong id="ZH-CN_TOPIC_0000001792389308__b46223114018">Administrator</strong><span>）对该脚本有可执行权限。如果无执行权限请依次执行以下操作授权：</span><p id="ZH-CN_TOPIC_0000001792389308__p13417214119">选择该脚本，单击鼠标右键，选择“属性 &gt; 安全”，在弹出的对话框中选择<strong id="ZH-CN_TOPIC_0000001792389308__b234413843619">Administrator</strong>用户，单击“编辑”更改权限。</p></li>
            </ul>
            <div class="note">
             <span class="notetitle"> 说明： </span>
             <div class="notebody">
              <ul>
               <li><span>当配置了</span><span class="uicontrol">“<span>备份成功执行脚本</span>”</span><span>时，即使该脚本执行失败，管理界面上也会显示备份任务的状态为</span><span class="uicontrol">“<span>成功</span>”</span><span>。请您留意任务详情中是否有后置脚本执行失败的相关提示，如有请及时修正脚本。</span></li>
               <li><span>备份Oracle集群环境的数据库时，如果配置了前置/后置脚本，需要注意以下内容：</span>
                <ul>
                 <li><span>集群中所有节点均需要存放前置/后置脚本。</span></li>
                 <li><span>本产品</span><span>默认只会在集群中其中一个节点执行该脚本。如果您的业务要求在集群中所有节点均执行该脚本，请在编写脚本内容时增加登录集群中各节点的内容。</span></li>
                </ul></li>
              </ul>
             </div>
            </div></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" headers="mcps1.3.4.3.3.2.1.2.2.3.1.1 "><p><span>备份成功执行脚本</span></p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" headers="mcps1.3.4.3.3.2.1.2.2.3.1.1 "><p><span>备份失败执行脚本</span></p></td>
          </tr>
         </tbody>
        </table>
       </div>
      </div> <p></p></li>
     <li><span>单击<span class="uicontrol">“确定”</span>。</span><p></p><p>如果当前系统时间已晚于该SLA首次备份的开始时间，则关联备份SLA后可以在当前立即执行手动备份或者根据SLA中设置的备份策略等待下次调度。</p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <ul>
         <li>备份任务执行过程中，建议不要重启ProtectAgent主机或ProtectAgent服务，否则可能导致备份任务卡住。如果重启后发现备份任务长时间卡住，请中止当前任务后重新备份。</li>
         <li><span id="ZH-CN_TOPIC_0000001792389308__ph1559428114314">执行日志备份时，<span>当</span><span id="ZH-CN_TOPIC_0000001792389308__text22246311345">本产品</span>检测到数据文件发生变化时，日志备份任务会自动转为全量备份。如果日志备份任务正在自动转为全量备份（任务详情可在“监控 &gt; 任务”界面，选择对应的备份任务查看），此时下发其他备份任务均会加锁失败，从而导致其他备份任务执行失败。</span></li>
        </ul>
       </div>
      </div> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="zh-cn_topic_0000001839268309.html">步骤9：执行备份</a>
    </div>
   </div>
  </div>
 </body>
</html>